/*
 * AbstractFileFilter.java
 *
 * Created on November 19, 2007, 9:06 PM
 */

package picto.tools;

import javax.swing.filechooser.FileFilter;

/**
 * A simple base class that advanced file filters can build on. 
 * 
 * @author Matt
 */
public abstract class AbstractFileFilter extends FileFilter {
    
    /**
     * The description of this filter.
     */
    private String description;
    /**
     * Creates a new instance of AbstractFileFilter with the specified 
     * description.
     *
     * @param description the filter's description which appears 
     *      on the JFileChooser dialog
     */
    protected AbstractFileFilter(String description) {
        this.description = description;
    }
        
    /**
     * Gets the description for this filter.
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
    /**
     * Sets the description for this filter.
     * @param description the new description
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
